package com.bll.imple.bbsAction;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import com.bean.BbsBean;
import com.bll.Action;
import com.dao.BbsDao;

public class ShowOneBbsAction implements Action{
	public String execute(HttpServletRequest request,
			HttpServletResponse response) {
		
		HttpSession session=request.getSession();
		String tel=request.getParameter("tel");
		System.out.println("tel:"+tel);
	    String lujing=request.getParameter("lujing");
	    BbsDao dao=new BbsDao();
	    BbsBean bean=dao.selectByTel(tel);
	    System.out.println("bean:"+bean);
	    request.setAttribute("bean", bean);
		return lujing+"?lujing="+request.getParameter("lujing1");
	}
}
